<?php

namespace App\Models;

use App\Util\Tool;
use Illuminate\Database\Eloquent\Model;

class FollowTitle extends Model
{
    protected $table ="c_follow_title";

    public function getOptions()
    {
        $options = $this->select('id', 'title as text')->get();
        $selectOption = [];
        foreach ($options as $option) {
            $selectOption[$option->id] = $option->text;
        }
        return $selectOption;
    }
}